package com.kstech.mp3604.fragments

import com.kstech.mp3604.base.BaseDialogFragment
import com.kstech.mp3604.databinding.FragmentDialogConfirmNoTaskBinding
import com.kstech.mp3604.ui.listener.DialogConfirmNoTaskListener


/**
 * 对话框-确认-进入无任务状态
 */
class DialogConfirmNoTaskFragment(val listener: DialogConfirmNoTaskListener) :
    BaseDialogFragment<FragmentDialogConfirmNoTaskBinding>(
        FragmentDialogConfirmNoTaskBinding::inflate
    ) {
    override fun onInitView() {

        binding.apply {
            cancelButton.setOnClickListener {
                dialog!!.cancel()
            }
            confirmButton.setOnClickListener {
                listener.dialogConfirmNoTask()
                dialog!!.cancel()
            }
        }
    }

}